package com.linkhub.oms.admin.common.exception;

import com.linkhub.oms.admin.common.util.I18nMessageUtil;
import com.linkhub.oms.common.exception.BizException;

/**
 * @Description: ExceptionFactory
 * @Author: echo
 * @Date: 2024/3/21 14:07
 * @Version: 1.0
 */
public class ExceptionFactory {

    public static BizException getI18nBizException(String msgKey, Object... args) {
        return new BizException(I18nMessageUtil.getMessage(msgKey, args));
    }
}
